Fixed up photo view controller dismissing progress HUD early.