Fix compiler warning

warning: passing NULL to non-pointer argument 1 of ‘asSFuncPtr asFunctionPtr(T)