Issue #2421841 by neclimdul, tim.plunkett: Performance bug in ControllerResolver::getControllerFromDefinition()