Fix upload html then broke

fix RhBug 1174111, that is upload an HTML would break Nitrate internal features.