Prevent duplicate messages from being enqueued