Issue #163: Avoid processing chart layer definition selection if undefined.
Remove unused imports.
Merge branch '#163/handle-empty-chart-widget-config' into develop