added a null pointer guard around propertyType in the toJsType method
Authored by: cosbor11 2011-06-22
Parent: [r5375]
Child: [r5377]