Fixed undefined variable notice in AgaviValidationManager::hasIncidents(), closes #565