* Fixed null callback handling. (For issue #143)

A more proper way is to check whether the type of in_value is a function.

if (JS_TypeOfValue(cx, ${in_value}) == JSTYPE_FUNCTION)