Make the dropdown only change if data exists

Selecting an empty value leads to silly results.