Fixed #22939 -- Delayed admin_static backend detection

Thanks generalov for the report.