Fix handling of elements that go stale during lookup
(cherry picked from commit a9a2360)
Merge pull request #5 from Blackbaud-TitusFortner/stale_element

Fix handling of elements that go stale during lookup