Number 1 above was likely the cause you needed `if (_progressDiv != null)`