fixes bug where list selection cannot be reset to null
prevent unnecessary exception for empty strings