Ensure appUrl begins with a '/' when failing back to hashbang mode

Similar to $$rewrite function in LocationHtml5Url