Fix validation parsing of classes without code