`socket.socket_typeinfo()` can be nullptr when reading blend files that contains custom socket types that are not registered yet. This fix prevents crashing when this happenes (but the socket will stay unregistered). Pull Request: https://projects.blender.org/blender/blender/pulls/148103