As mentioned on the referenced bug, we should wait for the element to be displayed first.