Correctly pick new questionnaire IDs during stamp (fixes #22)

The old code tried to retrieve the new ID for the first page
that it was stamped on. However, it is much easier to simply
retrieve the ID for each sheet right away.