[server][ActorCollector] Fix a bug that increments an invalid erased iterator.