REPORT-581: AllObsQuery throws exception if BaseCohort or ObsIdSet are empty