Verify if post has thumbnail and print it.
<?php if(has_post_thumnail()): ?> <div id="img"> <a href="<?=get_permalink()?>"> <?php the_post_thumbnail('home_news_single_img'); ?> </a> </div> <?php endif; ?>