Issue #24937:ensure that _site is valid