Fix for Firefox 26.0 having undefined window.location.username