Fix for StateReference::tryFindLocalHandler()

tryFindLocalHandler now returns null if all possible TriggerBehaviours have unmet guard conditions.