Improve the consistency checking mechanism

If there is no executor running, the steps can't really be in
running/suspended state, as well as execution plan to be in planned state