Fix #1: MSBuild error if no SmartTemplate in project

Added missing conditional on target.