return null instead of the empty string when no option is selected