do not crash on empty options in select

if options are empty collection it will crash with `undefined method '[]' for nil:NilClass`

/cc @i-like-robots