Improved detection of unsupported short flags

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