Cope with version check of very short store files.

Fixes a bug where the server would be unable to start if specific store files were
very short and where the database had not been shutdown cleanly.

Paired with @apcj on this one.