Fixed fetching namespace options for mounted APIs.

This fixes the scenario where an API is mounted by another API. 

There's a bigger issue when namespaces nest, but that's another story.