Fixed issue - Localstorate reverselookup fails in case the urls contain a # and have no ? character

The lookup in localstorage fails in case the urls contain a # and have no ? character
This is also related to the tweet: https://twitter.com/muslimbit/statuses/252336629744820224