Okay, I have just posted the new version of the script on the GIMP Plugin Registry.
http://registry.gimp.org/node/22383Anyway, note that it does not work with layer groups, as replicating this type of drawables would require too much memory and can result in possible crashes and slowdowns of GIMP.
As a matter of fact, if you try to launch the script when the active layer is a layer group and you click "OK" on the dialog window, you will receive a message that warns you of this planned inability. No real crash happens like that, but simply the script does not start at all.
I tested the updated script on both GIMP 2.6.12 and GIMP 2.8.8 and the problem now seems to be resolved.
Let me know if it works for you as well.