only check guard if the transition is triggered by an event

With this pull request guards will only be checked if the transition is triggered by an event in case a transition has both events and guards.


Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>