networkmanagerapplet: fix crash while connecting to protected wifis