Fixing the no connectivity bug

The app crashes when there's not network connection and you try to get a
pin.