Fix regression when managing cases with REFERER or with couple USERNAME/PASSWORD