#2629 fixed and unit tested templateAPI.findLiveTemplate