Fix crash when entering invalid extension name

This commit fixes a crash when entering a wrong
formatted extension string into the combo box
of the drop down list. Thanks to Rn84 for reporting
this bug.