Fix bug where error is not returned when data.Item does not exist