SES-1669 : Ensure that calls through the TupleQueryResultHandler will still start the document and start the header section before startQueryResult

Removed endDocument from the interface as it is not compatible with TupleQueryResultHandler. Its functionality is in endQueryResult for TupleQueryResultHandler and write for BooleanQueryResultWriter