hugolib: Improve panic handling in layout rendering
hugolib: Improve panic handling in layout rendering

fedelibre/hugo,anthonyfok/hugo,fedelibre/hugo,gohugoio/hugo,mdhender/hugo,anthonyfok/hugo,anthonyfok/hugo,mdhender/hugo,gohugoio/hugo,mdhender/hugo,mdhender/hugo,fedelibre/hugo,fedelibre/hugo,gohugoio/hugo