Refs #9608; Handle sparql errors