Fixed NPE when auto-actions are missing a state attribute. Fixes bug
NMS-5708.