[master] Fixes in check-descendants
Mostly adding a check whether when files are processed but have no descendants this may be due to the fact that they are flagged BAD and thus were removed.
Also remove the call to runDB to get the number of bunches as this requires now SSO which cannot be done yet...