Fixes intermittent "Cannot query at height 0" error. The commit process was not atomic since there was time between updating the store height and creating the snapshot which queries would be resolved against, resulting in some queries erroring when the snapshot was not found.
Note that queries at the start of a fresh network will still get this error since no snapshots exist yet. In the future, we should wait until the first snapshot before responding, rather than instantly erroring.
Fixes intermittent "Cannot query at height 0" error. The commit process was not atomic since there was time between updating the store height and creating the snapshot which queries would be resolved against, resulting in some queries erroring when the snapshot was not found.