Fix map click after closing popup by ESC

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>