Adding 'node' in local exec
Add null check for previousActivePane