Minor fix related to hardRefs (there should be no reference on parent when no id specified)