Execute namespace creation/removal only if namespaces defined

Change-Id: Ie0f1911a97e96fc11b4dcd3aef897104888cefaa
Related-PROD: PROD-28278 (PROD:28278)
(cherry picked from commit 97a2a1b66b4c27c7f49ffca6e9fe3882071c2761)
1 file changed