add assertion around loading Lua main chunk