popup: nested popup doesn't consider zIndexGroupLevel of parent popup (closes #970)

closes #970
I think we can use `undef` as initial state and `null` as cached absence state.