fixed bug where unknown options where not detected

Unknown options were being tested as null,
they were in fact undefined. Duh!