Allow null as argument to clearTimeout and clearInterval