Fixed error when no data-grid was provided.