The problem I had was the same but the code to remove was different. The key thing is that what needed to be removed was any comments outside the <html> tags. Took me some time to find my answer, but here I am!
More