Fixed throwing errors when mailbox is empty