Fix dirInfo check when dir does not exist
Merge pull request #7986 from owncloud/files-fixredirectwhendirnotexists

Fix dirInfo check when dir does not exist