* fix(#2495): skip action if node == nil * simplify --------- Co-authored-by: Alexander Courtis <alex@courtis.org>