Correct error handling when no message is defined.
Correct error handling when no message is defined.

FossilOrigin-Name: 964d457584bbfbb9399a162faafd12b29a1e2f18f09ee4d3ec98aaaba6af9f19
7u83/actube,7u83/actube,7u83/actube,7u83/actube,7u83/actube