Ensure that columnIndex and rowIndex are set only when they are defined.