fix public link downloads - load texteditor only if user is logged in

 load texteditor only if user is logged in, otherwise it will also register for public shares which will block downloads if the user clicks directly on the file.

This should solve https://github.com/owncloud/core/issues/3972

cc @butonic @blizzz