Issue #3222534 by Xiaohua Guan, baldwinlouie, yas: Remove $namespaced_routes = [] by checking whether there is namespace field in the entity type