NXP-15381: fix StaleElementReferenceException