Fix #13797: .is with single-node context
(cherry picked from commit 4f786ba4d2a5544cb48f589d2659d6cab84efc34)