[ngrams] fix for initial ngrams history table

The issue was that when search was performed, the initial table didn't
have an archive ready and so first commit resulted in some errors on
the frontend. This fix performs the commit after flow is finished.
4 jobs for 596-dev-ngrams-initial-sync-fix in 42 minutes and 53 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Stack
passed #8703
stack

00:04:19

 
  Cabal
passed #8704
cabal

00:24:22

 
  Bench
passed #8705
bench

00:03:52

 
  Test
passed #8706
test

00:10:18