Here we could maybe do the following instead:
var pin = JST['map/icons/' + this.get('type')];
return pin ? pin : JST['map/icons/default'];

Maybe later..