check if popupwindow is null