switch: fix for using a node for getting the pause value which was
already deleted