Fix wrongly enabled hyperlink tools with no document loaded
Remove duplicated code, linksInSelection is set later again
Merge pull request #833 from kossebau/fixEnabledHyperlinkToolsWithoutDoc

Fix wrongly enabled hyperlink tools without a document loaded