mod_muc_log_http: optimize code ...
Do move the if block to check for final trailing slash, at the beginning of the
callback function this prevents other checks to be done when unneeded.