[1.7x.] Fixed #23497 -- Made admin system checks run for custom AdminSites.

Backport of b7219c7ba5fdfbf9349948b5a91af50e32822ee6 from master