Check the stack size when trying to call a Lua{Object, Table} method

(Closes #3000)