Added guard clauses in all public methods.

@edandersen I added the following minor changes. Please review it.

* Added guard clauses in all public methods.
* Changed access modifiers for `CreateLinkObjectFromTransition` and `GetTransitionFromLinkObject` from public to protected.