sessions: fix: guard chat grid neighbor lookup before layout (#331617)