Fix error when setting unset field in source panel

When the user tries to set a previously unset field of an entry via the
source panel of the entry editor, the program complains with an error
message and refuses to store the field values.
This change fixes that behaviour.