[WFCORE-484] Remove no longer needed cast to AbstractResourceRegistratio...

...n