Allowed upload template to handle empty default templates.

Just a quick fix.