fix a bug when removing an empty array of messages in unique queue