[BUG #8593] return null if no template found