When registering a reference, NULL the reference object as we already
have a label.