Fixed the table.last not work in Lua 5.2.

[FIX] Fixed the table.last not work in Lua 5.2.