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

...n
Removing this assertion is the key to preventing the AssertionError, no?