Check for a featured image before displaying the container div (this is for pages, was already done for posts in 5e08c72)