I was trying to debug #6882 and I realized that in the great function the following line should be added.
echo 'If you have a lot of tags, be sure that <strong>max_execution_time</strong> and <strong>max_input_time</strong>, found in your php.ini file, are set to enough seconds to execute this import script. If you have mor than 5,000 tags, set them to something like 300 seconds. Be sure to change it back to your default when done.';
It could maybe be worded better, but you get the idea. I had 11,000+ tags and it kept breaking at 10,400-10,500 because it took more than the default max_execution_time setting of '30 seconds.' It would be good to have this note.
Note: I would commit this simple change myself, but I don't know how to.