Don't render unneeded markup when there is no thumbnail.