[ngrams] fix for first commit after import

This is similar to

purescript-gargantext#594

and

!205/

but for JSON import.
parent 030f7dad
Pipeline #5460 failed with stages
in 113 minutes and 54 seconds