popup: doesn't invalidate zIndex when anchor set while popup is hidden (close #1214)

close #1214
May be we should move it to a separate test-suite? I think "popup should recalculate zIndexGroupLevel if anchor is changed" looks like a self sufficient statement in BDD terms