Fixing issue where setHasEmptyDefault is called on non-DropdownField

This field might not specifically be a DropdownField, and if that's the
case then an error will be thrown because setHasEmptyDefault isn't
available.

Fix this by checking the field is an instance of DropdownField first.