Fix for typeinfo NULL pointer crash when initializing unknown node types.

Noticed by @bdancer on IRC. Happens e.g. when loading a file with
pynodes which haven't been registered yet.