Fix saving new gists. Do not access properties on undef