fixed a crash when user scans restaurant qr code and cancels the scan;