fix(client/js/templating.js): #868 - don't blow up if img is omitted in template