Sometimes it is null if the context menu is shown but there is not a focusedNode (when cursor is in a link).