Okay - So you can use an element exist of the icon in the Background - if Exists True then only Click otherwise Wait .
Now here in you case - If the Element Exists is coming as True despite of the element not existing. we can have a look at the Visible Property- Which will return true only when the Button is visible.
Below is thread for Visible usage.
–
Mukesh