Fixed various Lua errors when running some console commands from a dedicated server console.