Make sure progress isn't null before dismissing.