Reset corrupted PStore (fixes #409)

This PR makes a store reset itself when corruption is detected. This is fine, because the stores only contain data to speed up site compilation.

Fix for #409.