fixes issue serializing a web_page_template with no main widgets

it would return undefined method map for nil. this will return an empty array instead of nil