Avoid firing potentially expensive guard logic...

...when the transition is invalid anyway.
Merge pull request #40 from figwit/master

Avoid firing potentially expensive guard logic when the transition is invalid anyway.