Is this try-catch just for JSON.stringify? If so, let's just keep the try-catch on the stringify call and use an empty string if the conversion fails.