Fixed initial routing bug when using hashrouting

Hash routing would not load the initial route after a page refresh under some circumstances.