Fix segfault in template rendering

Resulting from temporary bundle having no set namespace.