Fix bug with empty gridmaxwaterdepth.zip #1.