Fix bug in parser that causes a crash with a bad option