Added handling of missing SPARQL variable.