[sparql] handle empty result of _sparqlexecute (closes #235720) [applied]