Fix for case when the maximum number of options is not defined during
initialization of component.