Fix error in mod_pubsub:presence_can_deliver/2

Add a public function ejabberd_sm:get_user_present_resources/2