Set a default message value for custom errors

Some errors reported to our reporting service have no message or stack trace,
which makes it impossible to know what's going on.