Fix for broken setImmediate() availability detection logic.