Fixed raising of errors during getting invalid nodes