IDEA-107305 Can't remove project template
(cherry picked from commit 0063f00)