Handle case where no groupings are retrieved from the Query Service
If the SPARQL query does not return anything,
then queryresult is None and cannot be iterated upon.
Now an exception will be raised, which is then re-raised
in the retrieve_and_process_data method.