Make sure the component and window of the button click event are not null before displaying the dialog popup (Vaadin has a weird rendering issue)
GCP-9455
Reviewer: Jaira