Use empty string for empty location.search

This matches the behavior of the browsers and avoids NPE cases for code not expecting Node's null value.