core: prevent calling catalog with an empty list

Folder_getDeleteObjectList could do an extra paranaoïa check that the
caller did not pass an empty list of uids, because this would cause the
script to iterate on the full catalog table.
5 jobs for feat/erp5_core_vs_pylint in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner1

00:40:35

failed ERP5.PerformanceTest-TestRunner1

00:32:24

failed ERP5.UnitTest-TestRunner1

01:32:30

failed ERP5.UnitTest-TestRunner1

01:41:46

canceled ERP5.UnitTest-TestRunner1