Fix handling of invalid transition exception for default state and
default transition