Fix empty anchors rendering in PDF