Disable admin_checks if admin folder doesn't exist

Fixes #17958