Check for the presence of pages before setting dates
Check for the presence of pages before setting dates

See #1903

gohugoio/hugo,coderzh/hugo,MarkDBlackwell/hugo,tischda/hugo,fedelibre/hugo,ffrizzo/hugo,MarkDBlackwell/hugo,soundrussian/hugo,abourget/hugo,sprig/hugo,mdhender/hugo,melo/hugo,tubo028/hugo,Zenithar/hugo,soundrussian/hugo,mayah/hugo,gohugoio/hugo,melo/hugo,mdhender/hugo,coderzh/hugo,sprig/hugo,jygastaud/hugo,jygastaud/hugo,digitalcraftsman/hugo,fedelibre/hugo,abourget/hugo,mitchchn/hugo,anthonyfok/hugo,gohugoio/hugo,mdhender/hugo,mdhender/hugo,fedelibre/hugo,digitalcraftsman/hugo,vbatoufflet/hugo,mayah/hugo,ffrizzo/hugo,fedelibre/hugo,tischda/hugo,bogem/hugo,anthonyfok/hugo,anthonyfok/hugo,Zenithar/hugo,vbatoufflet/hugo,mitchchn/hugo,tubo028/hugo,bogem/hugo