Try to report source of erronous Lua function calls

This fixes issue #1121, really.