FIX: Faulty logic when getting eligible resources

Real fix is in https://github.com/DIRACGrid/DIRAC/pull/1438/files#L0L534