Fix of keyboard navigation for an empty lazy node

For lazy node children can be an empty array. So we need to check children.length also before getting children[0].