Posts and Pages missing in the generated sitemap xml files.

The error occurs when the option "Include in Sitemap" is set to "Auto detect" AND the option "Meta Robots Index" is set to "Index"