On existing sites that already have changed the Uncategorized category to something else, this function also fires. There should be a check included if the Uncategorized category indeed (still) exists. Working on a fix now.