If the SPARQL response gives a empty value the $variable won't be set and will trigger a notice. This fix prevents the notice.

Change-Id: Ief581d577024d6038cc83cbf31d8d03979812654