Added an until element exists helper.