make tide file creation more robust; fixes #81

was failing on gauges where values for variables are empty for the
period being examined (but the values exist elsewhere in the dataset)