fixed corner case where nested template did not define requested child element