Fixing Issue #38. update_component now inserts a dict/object for an empty list, rather than erroring out on the index