check whether prop.type is defined

Closes genedv-dev #382647.