Fix Safari 7 window.performance illegal call