Fixed issues with getting allowed transitions when in a state not defined