Add wrapper properly, even if there is no image.
Merge pull request #6051 from openscholar/6050

Fix publication image wrapper, to fix missing contextual links in Biblio
add logging to file clear
Merge branch 'SCHOLAR-3.13' of https://github.com/openscholar/openscholar into SCHOLAR-3.13
Merge branch 'SCHOLAR-3.13' into SCHOLAR-3.x