fixup! erp5_core: reindex recursively only if indexable children type exists...

fixup! erp5_core: reindex recursively only if indexable children type exists in Base_reindexObjectSecurity.

Co-authored-by: Xiaowu Zhang <xiaowu.zhang@nexedi.com>
Reviewed-by: Jérome Perrin <jerome@nexedi.com>
15 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

01:38:09

failed ERP5.PerformanceTest-Master

00:39:13

failed ERP5.UnitTest-Master

passed SlapOS.Eggs.UnitTest-Master.Python2

00:17:26

passed SlapOS.Eggs.UnitTest-Master.Python3

00:19:38

passed Wendelin.UnitTest-Master

00:54:19

passed ERP5.CodingStyleTest-Master

01:08:31

failed ERP5.PerformanceTest-Master

00:41:59

failed ERP5.UnitTest-Master

03:49:29

failed ERP5.UnitTest-Master

failed ERP5.UnitTest-Master

failed ERP5.UnitTest-Master

03:29:41

passed SlapOS.Eggs.UnitTest-Master.Python2

00:19:12

passed SlapOS.Eggs.UnitTest-Master.Python3

00:18:54

passed Wendelin.UnitTest-Master

00:47:34