Fixes bug in detecting empty options (see issue #132 on github)