fix for parent classes not in module.

As reported by [Alexandre on the mailing list](https://groups.google.com/d/topic/xdress/SctB2Sv2Dfg/discussion)