[time.js] enhancement of time.Time.validate, making sure required fields for given precision are set

Change-Id: I12b49727ca1c737afa76569a70c3f35234735c3d