make popups more predictable

Related to https://github.com/ArcBees/GWTP/issues/554
Agree we should fire IllegalArgumentException but I copied this from the current implementation.