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