Fixed exception when window.performance wasn't supported