Fix bug when module URL is empty

When adding a BLTI module with an empty URL, the module shows error
content caused by a member variable is not initialized.
Fix the bug module URL doesn't replace BB variable

When the URL specified in the module contains any BB variable, e.g.
@X@user.user_id@X@, they are not converted into correct value when
module was executed.