Fixed crashing when QR code was not read.