Do not start thread if the document is not saved.