Preventing crash when view for progress bar is nil