Helper functions.
Made construct query not print {} if the construct clause is empty (SPARQL 1.1 shortcut).