Bug 1033253 - Null-check the result of JS_GetFunctionId. r=bz