Fix addPacket replacing existing and then adding duplicate item
Summary
Fixes addPacket replacing an existing Item with Item.replaceId == replaceId and then also adding an extra duplicate item to the end of the queue
Test Plan
Before:
Not testable because of background worker
After:
Run DevicePacketQueue unit tests