Fix a bug introduced in commit 5a559a5; only Patient and Person datasets can be filtered in Java based on cohort member ids.