Fixing issue #4769 (stale element can get into executeScript)

Fixing by use result of recursive walk of arrays/objects.
Add test for this problem.