Fixed SelectBox raising exception with null options

Fix for issue #4639
Is it possible at this point that $options is a Traversable object? In that case the cast to array would make no sense