GG-8771 - Fixed portable object detach after index update (should be before).
GG-8771 - Review
Minor fix.