Issue #1099352 by anrikun, Berdir: Fixed wrong message is displayed when submitting the form without selecting a category. Including many tests.