TOOLS-509: Avoid exception when history.error is a string and do not include a "message" member.