Added check for existence of variable binding in results to SPARQL query.