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
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner1

01:06:23

failed ERP5.PerformanceTest-TestRunner1