Fixes #954

The problem was that the clear method triggers on all partitions a RecordStore to be created,
even if there are no record. This fix doesn't trigger the created of the RecordStore.