fix(terraform): prevent crash in S3AllowsAnyPrincipal with unparsed v… (#7581)