Throw exception if the first arg is not a callback

The first argument in a native Java function call from JS must be null
or a callback