Fixed a couple of bugs within HTMLContentPlugin.writeContent() that I
happened to spot while reviewing the code.