Fix LuaScriptInterface::getVariant()

This might fix issue #547