Improved detection of unsupported short flags

Parsing of an unsupported short flag was failing with:

    pl/lapp.lua:335: attempt to index local 'flag' (a nil value)

Example usage: `myscript.lua -ab`
Where `-a` is the unsupported flag.