Janic Duplessis 44fcf22074 Fix crash when passing null to clearImmediate
Summary:Passing `undefined` or `null` to `clearImmediate` caused apps to crash. It it caused because we try to find the index of the null/undefined timer when we should just do nothing when passed these values.

It is already handled properly in the other Timer functions.

**Test plan**
Calling `clearImmediate` with `undefined` or `null` should do nothing.
Closes https://github.com/facebook/react-native/pull/6192

Differential Revision: D2987778

Pulled By: vjeux

fb-gh-sync-id: 6fd38cfa3c10012caa2afb27cbdab95df696a769
shipit-source-id: 6fd38cfa3c10012caa2afb27cbdab95df696a769
2016-02-28 11:41:33 -08:00
..
2015-07-24 08:41:58 -08:00
2016-02-25 17:19:31 -08:00
2016-01-30 17:11:28 -08:00
2016-01-08 15:42:32 -08:00
2016-02-11 02:45:34 -08:00
2016-02-12 12:58:31 -08:00
2016-02-05 16:45:46 -08:00
2016-02-27 15:58:35 -08:00
2015-07-24 08:41:58 -08:00
2016-02-17 07:38:33 -08:00
2016-02-11 02:45:34 -08:00