Make sure setImmediate is actually a function, not just defined