Avoid using `location.hash` as jQuery selector directly

The URI fragment might have all sorts of data in it and will not always
be a valid CSS query. The previous approach could have led to Sizzle
syntax errors.

Since we're only allowing lookups by ID, use `getElementById` here which
will never error out, even for malformed values.
pjax 1.9.4