Fix FileInfo->getType errors
Check if value exists before returning
Merge pull request #7628 from owncloud/fileinfo-type

Fix FileInfo->getType errors