This patch avoid console messages with custom nodes when the addon that are create this nodes is disabled or not intalled.
In some cases, Blender can't manage this custom sockets and show this message:
Traceback (most recent call last):
File "E:\apps\blender\2.90\scripts\startup\bl_ui\space_node.py", line 542, in draw
socket.draw(
AttributeError: 'NodeSocket' object has no attribute 'draw'
location: <unknown location>:-1
location: <unknown location>:-1