Fixed addItem bug when adding to empty carousel

This fixes an error when adding an item to an empty carousel.