Fix NullReferenceException in ActiveWindowStateConditionEvaluator.IsValid().