Fix indexing scheduler trying to index when Elasticsearch is disabled (#19805)
Fix indexing scheduler trying to index when Elasticsearch is disabled (#19805)

Fix #19646
im-in-space/mastodon,glitch-soc/mastodon,Ryanaka/mastodon,yukimochi/mastodon,MitarashiDango/mastodon,glitch-soc/mastodon,MitarashiDango/mastodon,masto-donte-com-br/mastodon,theoria24/mastodon,theoria24/mastodon,theoria24/mastodon,masto-donte-com-br/mastodon,maa123/mastodon,im-in-space/mastodon,Ryanaka/mastodon,glitch-soc/mastodon,gol-cha/mastodon,yukimochi/mastodon,glitch-soc/mastodon,MitarashiDango/mastodon,masto-donte-com-br/mastodon,maa123/mastodon,maa123/mastodon,theoria24/mastodon,gol-cha/mastodon,gol-cha/mastodon,masto-donte-com-br/mastodon,im-in-space/mastodon,Ryanaka/mastodon,maa123/mastodon,yukimochi/mastodon,MitarashiDango/mastodon,yukimochi/mastodon,gol-cha/mastodon,Ryanaka/mastodon,im-in-space/mastodon