core: fix Folder_cut to check relations of sub-objects

This `o` was an unused variable. The initial intention was probably
this.
2 jobs for fix/testXHTML_by_bt
in 0 seconds, using 0 compute credits, and was queued for 0 seconds