only check guard if the transition is triggered by an event

Signed-off-by: Ruben Smits <ruben.smits@intermodalics.eu>
Merge https://github.com/smits/rFSM into catkin