[bugfix] Do not NPE when calling restxq module function from not restxq context

Instead of an NPE we now get an XQuery error RQDY0101