Bugfix: validate_model sometimes broke on $generatedLabels not being populated yet.