Fixed #1: Crashing when template namespace is missing