getNodesEntitledForOverlays: small bug fix