Fix exception while deleting message from transactional queue