Fix error when adding cards

When adding new cards, the content of the destination field was checked
before checking if the field even existed.