fixes infinite loop in machine state call if provider calls machine.action
Merge pull request #4792 from mwrock/state_refresh_fix

fixes infinite loop in machine state call if provider calls machine.action