Fix NULL when destroy Dialog before handle by DialogService