bemhtml: fix handling links in cache