Fixed failure to insert element into queue when element already exists in dom, is not visible, and visibility is required.