[build] don't crash on empty template.
Platform-specific templates.