Fix preening bug: null values

There was a bug in the preening user history code: it was storing null values. Sadly, that means that there are loss of historical data.
@lefnire, with this change merged, all the tests are going to pass :)