Fixed QueuedMessagesSender not removing the endpoint from allEndpoints when there were no messages to send it