Fix crash if no QR scanner is available (fixes #71).