prevent error in non pjax onpopstate


* this is throwing exception and causing tests to fall