Fixed weird bug resulting from broken/nonexistent transitions being attached to a state