Fix (re)move nested resources with onchange_reindex

Fixes a regression introduced in commit 2b37fe3f4e2a8