Mode 2141  - Added validation for removing used namespaces

This should be merged after: https://github.com/ModeShape/modeshape/pull/1039