From Aurelien Albert, "There is a little bug in the osg::Group::insertChild method :

If the index is more than the size of _children vector, the new child is pushed at the end of the vector, but the index value is unmodified, so an incorrect value is passed to the "childInserted" method."