Fix time validator to work with blank strings.