Fixed a crash when we tried dyn_cast<>ing a
null pointer.

<rdar://problem/13745684>