Fix highlighting in percolate existing doc api

Currently no highlight snippets are generated when percolating en existing document, which is a bug. This PR makes highlighting also work in percolating an existing doc, just like the regular percolate api.