stamp: Do not store the questionnaire IDs as new when --existing is used

The list of internal questionnaire IDs would grow every time the --existing
flag was used.