Fix caret rendering in empty lists elements