Check that categories are enabled before saving.

If categories aren't enabled, there are undefined index error on job submission (both new and edits). This fixes it and solves #12