Issue 878 - ExtensionPopupMenuItem#getMenuIndex() as no effect in MainPopupMenu
Issue 878 - ExtensionPopupMenuItem#getMenuIndex() as no effect in MainPopupMenu

Changed to check if the menu index is greater than the number of components of the pop up menu.

profjrr/zaproxy,cassiodeveloper/zaproxy,gsavastano/zaproxy,DJMIN/zaproxy,JordanGS/zaproxy,jorik041/zaproxy,UjuE/zaproxy,JordanGS/zaproxy,urgupluoglu/zaproxy,DJMIN/zaproxy,gsavastano/zaproxy,NVolcz/zaproxy,thamizarasu/zaproxy,gsavastano/zaproxy,efdutra/zaproxy,pdehaan/zaproxy,UjuE/zaproxy,veggiespam/zaproxy,MD14/zaproxy,mario-areias/zaproxy,psiinon/zaproxy,profjrr/zaproxy,zaproxy/zaproxy,zaproxy/zaproxy,surikato/zaproxy,meitar/zaproxy,pdehaan/zaproxy,jorik041/zaproxy,MD14/zaproxy,mario-areias/zaproxy,urgupluoglu/zaproxy,thamizarasu/zaproxy,robocoder/zaproxy,surikato/zaproxy,mabdi/zaproxy,psiinon/zaproxy,Harinus/zaproxy,Ye-Yong-Chi/zaproxy,kingthorin/zaproxy,urgupluoglu/zaproxy,gmaran23/zaproxy,rajiv65/zaproxy,Ali-Razmjoo/zaproxy,Harinus/zaproxy,mustafa421/zaproxy,robocoder/zaproxy,Ali-Razmjoo/zaproxy,mustafa421/zaproxy,tjackiw/zaproxy,mustafa421/zaproxy,ozzyjohnson/zaproxy,mabdi/zaproxy,0xkasun/zaproxy,UjuE/zaproxy,NVolcz/zaproxy,Ye-Yong-Chi/zaproxy,gsavastano/zaproxy,NVolcz/zaproxy,meitar/zaproxy,NVolcz/zaproxy,urgupluoglu/zaproxy,JordanGS/zaproxy,efdutra/zaproxy,JordanGS/zaproxy,gsavastano/zaproxy,thc202/zaproxy,tjackiw/zaproxy,jorik041/zaproxy,thamizarasu/zaproxy,cassiodeveloper/zaproxy,lightsey/zaproxy,cassiodeveloper/zaproxy,robocoder/zaproxy,tjackiw/zaproxy,gmaran23/zaproxy,kingthorin/zaproxy,veggiespam/zaproxy,thc202/zaproxy,zapbot/zaproxy,cassiodeveloper/zaproxy,0xkasun/zaproxy,pdehaan/zaproxy,tjackiw/zaproxy,robocoder/zaproxy,DJMIN/zaproxy,zaproxy/zaproxy,rajiv65/zaproxy,mabdi/zaproxy,lightsey/zaproxy,mabdi/zaproxy,kingthorin/zaproxy,veggiespam/zaproxy,urgupluoglu/zaproxy,Ali-Razmjoo/zaproxy,thamizarasu/zaproxy,gsavastano/zaproxy,rajiv65/zaproxy,pdehaan/zaproxy,lightsey/zaproxy,gmaran23/zaproxy,ozzyjohnson/zaproxy,tjackiw/zaproxy,efdutra/zaproxy,Ye-Yong-Chi/zaproxy,mabdi/zaproxy,mario-areias/zaproxy,mustafa421/zaproxy,tjackiw/zaproxy,meitar/zaproxy,thc202/zaproxy,meitar/zaproxy,zapbot/zaproxy,cassiodeveloper/zaproxy,robocoder/zaproxy,thamizarasu/zaproxy,urgupluoglu/zaproxy,0xkasun/zaproxy,kingthorin/zaproxy,ozzyjohnson/zaproxy,UjuE/zaproxy,pdehaan/zaproxy,mario-areias/zaproxy,meitar/zaproxy,rajiv65/zaproxy,UjuE/zaproxy,rajiv65/zaproxy,surikato/zaproxy,UjuE/zaproxy,jorik041/zaproxy,NVolcz/zaproxy,UjuE/zaproxy,0xkasun/zaproxy,surikato/zaproxy,thamizarasu/zaproxy,profjrr/zaproxy,Ye-Yong-Chi/zaproxy,surikato/zaproxy,zapbot/zaproxy,cassiodeveloper/zaproxy,jorik041/zaproxy,mustafa421/zaproxy,veggiespam/zaproxy,Harinus/zaproxy,gmaran23/zaproxy,MD14/zaproxy,surikato/zaproxy,MD14/zaproxy,DJMIN/zaproxy,efdutra/zaproxy,Harinus/zaproxy,zapbot/zaproxy,lightsey/zaproxy,cassiodeveloper/zaproxy,thamizarasu/zaproxy,surikato/zaproxy,meitar/zaproxy,robocoder/zaproxy,psiinon/zaproxy,kingthorin/zaproxy,Harinus/zaproxy,kingthorin/zaproxy,JordanGS/zaproxy,mustafa421/zaproxy,Ali-Razmjoo/zaproxy,pdehaan/zaproxy,profjrr/zaproxy,DJMIN/zaproxy,veggiespam/zaproxy,0xkasun/zaproxy,gmaran23/zaproxy,zaproxy/zaproxy,0xkasun/zaproxy,JordanGS/zaproxy,lightsey/zaproxy,efdutra/zaproxy,psiinon/zaproxy,lightsey/zaproxy,meitar/zaproxy,thc202/zaproxy,profjrr/zaproxy,efdutra/zaproxy,rajiv65/zaproxy,efdutra/zaproxy,gsavastano/zaproxy,Ali-Razmjoo/zaproxy,veggiespam/zaproxy,zapbot/zaproxy,Ye-Yong-Chi/zaproxy,pdehaan/zaproxy,profjrr/zaproxy,NVolcz/zaproxy,robocoder/zaproxy,gmaran23/zaproxy,mustafa421/zaproxy,JordanGS/zaproxy,Ali-Razmjoo/zaproxy,psiinon/zaproxy,jorik041/zaproxy,mario-areias/zaproxy,Ye-Yong-Chi/zaproxy,thc202/zaproxy,Ali-Razmjoo/zaproxy,mario-areias/zaproxy,0xkasun/zaproxy,Ye-Yong-Chi/zaproxy,zaproxy/zaproxy,zaproxy/zaproxy,MD14/zaproxy,rajiv65/zaproxy,ozzyjohnson/zaproxy,jorik041/zaproxy,Harinus/zaproxy,MD14/zaproxy,mario-areias/zaproxy,ozzyjohnson/zaproxy,thc202/zaproxy,tjackiw/zaproxy,psiinon/zaproxy,urgupluoglu/zaproxy,profjrr/zaproxy,thc202/zaproxy,zaproxy/zaproxy,DJMIN/zaproxy,kingthorin/zaproxy,zapbot/zaproxy,DJMIN/zaproxy,lightsey/zaproxy,mabdi/zaproxy,veggiespam/zaproxy,ozzyjohnson/zaproxy,zapbot/zaproxy,mabdi/zaproxy,ozzyjohnson/zaproxy,MD14/zaproxy,gmaran23/zaproxy,NVolcz/zaproxy,psiinon/zaproxy,Harinus/zaproxy,meitar/zaproxy