If we end up passing `null` to `registerManaged()`, it's going to attempt converting `null` to a PHP identifier value (since the `if ( ! $class->identifier)` condition isn't true. In that case, wouldn't it end up adding garbage to UoW's `$documentIdentifiers` map?