<feature/server-interface> fix crash with null reference exception on qr scanning