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.
Merge pull request #1704 from mneedham/fix-store-file-startup-check

Cope with version check of very short store files.