Categories can be set

This code was here to ensure that saving worked both if the category existed (i.e. it had been edited before) or if it didn't exist yet. Does that still work?