Display an error, rather than crashing, if encoding a QR Code failed.