Issue #12. Fixed a problem with a Null Pointer Exception when state.Action == null