guard setTemplate for < 10.10

Signed-off-by: Barry Allard <barry.allard@gmail.com>