Fixed crash when deleting the first row of custom while editing a row. Is not replicatable in unit tests.