Added a try catch to prevent the team 3 analyse test for indirect
dependencies to break due to null pointer when incrementing the
progressbar.