fix(legacy-timers): Do not add setImmediate
and clearImmediate
if they do not exist in the global environment
#11599
+14
−5