Bugfix certificate improvements

This fixes the issue where anonymously created certificates can't access the improvements page.

**Please note:** This fix will also mean that all (new) response sets will have an associated dataset, which I think makes sense. This will affect the stats page which currently lists far fewer datasets than certificates.

Resolves #578