Don't show -1 for templates that don't exist in filesystem yet

Ticket: #3774