Add migration path from 1 to 2 for missing gid

NIS placeholders didn't have a GID in json in v0.19*. To support
upgrading without issues we add the GID now to comply with our schema.
There shouldn't be `puts` calls in the tests.