bugfix: nil .Parent in template

I introduced this bug a while back. :( 
Just found + fixed it :)