Fixed error in Safari when trying to get setTimer value