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

close #1214
May be `getCssZIndex`? IMHO, this name looks more clear.