Fix "bundle exec rails mastodon:setup" crashing in some circumstances (#16976)
Fix "bundle exec rails mastodon:setup" crashing in some circumstances (#16976)

Fix regression from #16896
koba-lab/mastodon,koba-lab/mastodon,koba-lab/mastodon,koba-lab/mastodon