When serializing an ActivityPub actor, Mastodon checks for the existence of the avatar/header files. This is not necessary, only check if avatar/header is set. fd8bf49d38/README.md (checking-a-file-exists)
fd8bf49d38/README.md (checking-a-file-exists)