fix mod_offline:count_offline_messages/2

mod_offline:count_offline_messages/2 always return 0 by trivial type mismatch.
It follows that max_user_offline_messages does not working.
I have tested only in mysql.