BPMSPL-84 - minor bugfixes for task/process instance query operations