Bug 963242 - Add null checks in AndroidBridge::JavaThreadDetachFunc() r=kats