[bug fixs] TDIS-5388, TDIS-5390,

- Changed the exception type for TypeMismatch
 - Changed the actions for parameter invalid situation.
[bug fixs] Fixed "When running the application which has viewport tag with non-numberic property of width or height, the viewport size will be displayed as NaNxNaN on information panel issue".