Top Posts Widget: add link to post thumbnail in "Image Grid" view

When choosing the "Image Grid" option in the Top Posts & Pages widget, the thumbnails are not clickable. This PR fixes this.

Suggested in 1831285-t