Fix of double 'popstate' fire in Safari8.