[tests] Fix site_tests.TestLogPages tests
[tests] Fix site_tests.TestLogPages tests

test_logpages and test_list_namespace are sometimes failing due to
autoblock removal entries. Check for this case.

Bug: T216002
Change-Id: I3a19f62a7610cc04da28e5fcbdeda0f2614c2f78

PersianWikipedia/pywikibot-core,wikimedia/pywikibot-core,wikimedia/pywikibot-core