If main state != AUTO then vehicle_control_mode.flag_control_auto_enabled == false and navigator switches to NAV_STATE_NONE itself (https://github.com/PX4/Firmware/blob/master/src/modules/navigator/navigator_main.cpp#L748). It looks like you missed failsafe stuff in commander, that acually should be changed if you want to fly in HIL without RC.