BPMSPL-84 - bugfix (REST rich queries)