Hardening to avoid null-pointer crashes in the
presence of malformed class types.

<rdar://problem/13740646>