Bug 1064211 - Check nsDocument::sProcessingStack contains a value before processing it. r=mrbkap