Fixed Lua API bug related with system_state not available just after booting