fix checking acl in mod_register_web

Sorry that my code is insufficiency.
The following code will get crash when jlib:make_jid/3 returned error.
https://github.com/processone/ejabberd/pull/156

Please merge this.
Thank you.