`Results.getXrefReader()` fails if `env.isGenerateHtml()` returns boolean. This is a fallout from #858.