Avoiding stale elements while trying to get text from element.