This reverts commit 8b1eead24ba8decd3c54cca425e223879047dc5f. As of ejabberd 15.04, the session manager won't deliver error messages that were sent to bare JIDs anymore, so MAM error messages should no longer arrive. Also, the 'c2s_filter_packet_in' hook no longer exists.