Fix favicon disappearing in Firefox when setting location.hash

Fix favicon disappearing in Firefox when setting location.hash
See bug #3448485