Ensure that a generated form's page seeds are idempotent.

Fixes #2673 

This should be backported to 2-1-stable, too.