try and catch for nulls that happen during unit tests