Put in some checks for null. This can happen when we are canceling updating part way through.
Merge branch 'development' of https://github.com/MatterHackers/agg-sharp into development