[OptionsResolver] Fixed exceptions thrown by the Options class