Fixed bug. Route regions with data but no template should not set region template to undefined.