fix(findState) for undefined stateName