Bug fix in pairing mechanism

For cases where scanned QR code doesn't have a key in it