It should be possible to state the valid values for a config option and check that either the default value is used or that the option supplied is valid.
This would avoid issues such as the one seen here chef/chef#1509 where cookbook_path was set to nil leading to odd errors.