Check that the correct error is thrown on empty/missing options.