Fix error when submitting changes when editing a competition.
Merge pull request #336 from cpoulain/master

Fix error when submitting changes when editing a competition.