Fix crashes by unknown nodes