Fix for issue #86

Added handling of options without optgroup when one or more optgroups are present for pre-rendered selects