In case a category was deleted before move categories was executed - Go

up the hierarchy to find the first existing anscestor and move the
category entries to it.
#time 1 day