Fix #2538 - Only transition if both pushState and hashChange are requested.

If only one of `hashChange` or `pushState` is requested, there's no reason to transition from one to the other.