pack_refs(): remove redundant check