Fixed an undefined index error when setting a dropdown's default value.