Issue #3516482 by mglaman: ConstraintManager::getDefinitionsByType does not validate definitions and can lead to a crash
Closes #3516482