only add a trailing slash to appUrl if it isn't already there

https://bugzilla.mozilla.org/show_bug.cgi?id=1097858