Fixing crash when adding room by QR code after accepting the camera permission for the first time