Removed test on null templatepath