fix QR code not being readable sometimes (patch by Fragger)

fixes breunigs/ingress-intel-total-conversion#487
fixes breunigs/ingress-intel-total-conversion#486