make popups more predictable

Related to https://github.com/ArcBees/GWTP/issues/554
NullPointerException and IllegalArgumentException