[BUG 7216] Fixed issue with creating a class with a top-level namespace which is not part of the custom root object.