Fix confirmDialog null check