Check that categories are enabled before saving them.