Fix registry lookup

If a model class is used instead of the applabel with model name, the
method failed to return a configuration in all cases.