Return the empty string as appropriate for location.{search,hash}.
Merge pull request #3081 from Ms2ger/location-empty

Return the empty string as appropriate for location.{search,hash}; r=Manishearth