Added fix to correctly parse non-array error messages

Some apps like the antivirus app return messages in a non-array format.
Merge pull request #5606 from owncloud/files-uploaderrorparsingfix

Added fix to correctly parse non-array error messages