Support null as argument to clearTimeout and clearInterval