Avoid TypeError when lastBuild is null
Merge pull request #18 from outdooricon/master

When a new project has been created but not yet run, the template throws a TypeError