Added fix to correctly parse non-array error messages

Some apps like the antivirus app return messages in a non-array format.

Please review @karlitschek @butonic @schiesbn @DeepDiver1975