raising error when no descriptor element is found in registry during der...

...eferencing

@fosdev Please review and merge.