Fixes null pointer when the Registry has already been cancelled