Improve error messages of Lua data files by detecting loading failure.

If lua_load() fails, an error message is pushed instead of the chunk. We
did not check that and always called the value pushed.
Therefore, we ended up with the error "Attempt to call a string value"
and no line number.