ECMS-5048 recalculate componentWidth in case selectedItem does not exist in ECMUtils.js.resizeVisibleComponent