Fix removing of references not updating revid properly
Bug: T103603 Change-Id: Ic99fdbb06d7fdaf3d81a138b16face13df983650