Fix warnings in logs when renaming over the web UI

The determineIcon() method was expecting attributes to be set which
caused warnings about undefined indices in the error log.

This fix pre-initializes the array with 'directory' and
'isPreviewAvailable' to make them disappear.
Merge pull request #6990 from owncloud/files-fixrenamewarnings

Fix warnings in logs when renaming over the web UI