Fix: Cannot set property 'width' of undefined

"Cannot set property 'width' of undefined" 

It was giving an error when container_id is an object.