fixed to check for subclass node==None which could happen in 1.4.