defensive progressdialog handling for orientation changes