Ask whether to save existing project when creating a new project from a template

When creating a new project from a template, the user would not get asked whether to save the currently open project.

Funded by Sourcepole QGIS Enterprise.