Forgot to add stuff belonging to last commit.
Fix segfault when parsing snapshot message of empty store.