Handle null item.cols in _getLayout.