livereload: Fix recently broken window.location.reload logic
livereload: Fix recently broken window.location.reload logic

Closes #4100

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