Fix migration 047 in the case that there aren't actually threads stored.