Return the empty string for empty gitignore templates

Let's not crash trying to interpret None as json, but return an empty
string instead.