BPMS-1135: Corrected query and snippet responsible for setting parameter for the query.