Added check for nil progressView pointer.