Better handle case when `type` key doesn't exist (otherwise, fatal error **dans ta face**).

Either put default value (https://github.com/akeneo/pim-community-dev/blob/master/src/Pim/Bundle/DashboardBundle/DependencyInjection/Compiler/RegisterWidgetsPass.php#L40) or throw exception :wink: