Fixing crash that occurs when error message comes back as a number

Fixes #2445