fixed a harvester history bug where there is bad data in database it kills history with null pointer