Fix #5587 (quickfix)

Check that the numbers from git are not empty strings before pasting
them into `version_git.jl`.