Add a check to fix this when it happens (likely caused by connecting to a DB that hasn't been sync'ed yet).