Prevent empty namespace errors

As Scaffold adds a namespace for all configured tiers, the path to the tier may actually be (bool) false, added a check to see whether the path to the namespace is empty().