[Cleanup] Remove unused variables and unreachanble code
[Cleanup] Remove unused variables and unreachanble code

Fixed the following instances:
scripts\script_wui.py:310: unsatisfiable 'if' condition

Bug: T203395
Change-Id: Iffb96aef4398ab2f9842de9ad18548fe83344442

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