Slightly change the behave of namespace locator.

When unregistering a namespace:
If there is any sub namespace exist, just unset the path if target namespace, and keep all sub namespace still.

If otherwise, just clear it as old time.
Fixed a PSR2 style problem.