fix failing test in chrome, and cleanup route method

When is `location` set to `null` or a non-object?  Can we have a failing test to confirm no regressions occur here?