handle stale element reference error in asserters