Fix validation error with empty rules