Fixed isPreviewAvailable warnings in log

isPreviewAvailable wasn't always set as the files formatting code is
slightly different than the one from the files app.

Fixes #6423
Merge pull request #6819 from owncloud/files-ispreviewenabledwarningfix

Fixed isPreviewAvailable warnings in log