Fix category edit db error when saving NONE as parent category