Check for post thumbnail

Updated code to check for post thumbnail on index.php. If post
thumbnail is not present, remove unnecessary html code.