ContestExporter: fix bug preventing export to archive

Fix issue #146.
CWS: fix bug in task description page

Don't assume that User.primary_statements contains an element for every
task name and use an empty list if it doesn't.

Fix issue #147.
YamlImporter: fix bug preventing script from doing anything

Since "not None == True" the script thought that DB access always
failed.