Update header.php H1 with function is_singular()

Update header.php H1 with function is_singular() is work as expected.
When current page as a Post, Page, or Attachment the header H1 has turn to div. H1 has normally appear in Blog or Category page.