Loop improvement
Loop improvement

We don't need to run throug he loop completely when the arg is found.

Change-Id: Ie8eed3bf871c3a9a82b2e96cdc7f25d09c1a229d

magul/pywikibot-core,TridevGuha/pywikibot-core,smalyshev/pywikibot-core,npdoty/pywikibot,trishnaguha/pywikibot-core,jayvdb/pywikibot-core,PersianWikipedia/pywikibot-core,npdoty/pywikibot,jayvdb/pywikibot-core,xZise/pywikibot-core,valhallasw/pywikibot-core,VcamX/pywikibot-core,wikimedia/pywikibot-core,Darkdadaah/pywikibot-core,icyflame/batman,hasteur/g13bot_tools_new,wikimedia/pywikibot-core,happy5214/pywikibot-core,magul/pywikibot-core,happy5214/pywikibot-core,darthbhyrava/pywikibot-local,hasteur/g13bot_tools_new,emijrp/pywikibot-core,Darkdadaah/pywikibot-core,h4ck3rm1k3/pywikibot-core,hasteur/g13bot_tools_new,h4ck3rm1k3/pywikibot-core