Fix wrongly enabled hyperlink tools without a document loaded