Fail early in TestGetRealPath
Fail early in TestGetRealPath

See #2476

Zenithar/hugo,mdhender/hugo,mitchchn/hugo,digitalcraftsman/hugo,mitchchn/hugo,fedelibre/hugo,digitalcraftsman/hugo,Zenithar/hugo,gohugoio/hugo,anthonyfok/hugo,anthonyfok/hugo,gohugoio/hugo,mdhender/hugo,bogem/hugo,bogem/hugo,tubo028/hugo,jygastaud/hugo,mdhender/hugo,gohugoio/hugo,mdhender/hugo,MarkDBlackwell/hugo,tubo028/hugo,fedelibre/hugo,mayah/hugo,mayah/hugo,fedelibre/hugo,MarkDBlackwell/hugo,jygastaud/hugo,anthonyfok/hugo,fedelibre/hugo