Fix favicon disappearing in Firefox

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