Add check for valid data type ID in JS dataTypes.DataType

Change-Id: I0774f5352d9e40de8d0c21641eb0c7c6fca1a35a