Send error message when TestResult could not be parsed.

(cherry picked from commit dbe3d5f05526e97728d42cf88bce7c8e9ff94ed0)
trac#415: Fix parsing of TestResult/profile.