Run unreachableCode checking only on executable scopes (#5789)