Only set urlbar to location, when we have a location URL

This prevents the empty urlbar flash when reloading a page.