Fixed default selection in select box and added some nullchecks to
prevent crashes when rendering the AbstractSelect box.