Ignore pop-state without states

If the state is null or undefined ignore the popState event. This was
being called in older versions of webkit.