Ensure namespace is always set when parent module is not found.

Fixes #753