Fixed bug in AbstractIMStorage::deleteMessage