[bug fix] TDIS-5390, throw exception 'TYPE_MISMATCH_ERR' when setting ty...

...pe invalid.