Fixed SelectBox raising exception with null options

Fix for issue #4639