Update Mahana_messaging.php

Get message count was returning error when message count is 0, changed it to return 0