Check whether user.name and user.email are set for git before trying to stash