So close! I have this same issue with my regular installation of WP, and I only realized today (after 3 months) that this is the reason my forums – http://argentinastravel.com/forums/ – are not getting indexed!
I tried creating a plugin from the code above, but I couldn’t activate it. Can someone please help me with a step by step fix for a regular WP install? Gracias!