detect persistent portal correctly (bnc #8564949)