Added cLuaState::CheckParamFunctionOrNil().

Also fixed error reporting for the two function-checking functions.
cWorld:ChunkStay() accepts nils as callbacks.

Also removed leftover debug logging.