Fixing broken HistoryPruner

Bugs closed: AURORA-359

Reviewed at https://reviews.apache.org/r/20689/