Updated _getCartHtml function to allow for null data value fixing error