IJ.deleteRows() throws exception with ImageJ 1.52s and 1.52t

I just upgraded from ImageJ 1.52p to 1.52t and a macro I am working on now throws an exception. Reverting to 1.52s also shows the error, while reverting to 1.51w runs fine.

Here is a minimal block of code showing the error. In this code, the Hough Circle Transform plugin outputs results to the results table, but then a call to “IJ.deleteRows(1, 1)” throws an exception:

//Clear windows
if(isOpen("Results")){
	selectWindow("Results");
	run("Close");
}
close("*");

//Create test image
newImage("test", "8-bit black", 512, 512, 1);
setForegroundColor(255, 255, 255);
makeOval(70, 73, 117, 117);
run("Draw", "slice");
makeOval(244, 264, 117, 117);
run("Draw", "slice");
makeOval(38, 369, 117, 117);
run("Draw", "slice");
makeOval(376, 17, 117, 117);
run("Draw", "slice");
run("Select None");
run("Erode");

//Run analysis
run("Hough Circle Transform","minRadius=110, maxRadius=120, inc=1, minCircles=1, maxCircles=4, threshold=0.1, resolution=792, ratio=1.0, bandwidth=10, local_radius=10,  reduce results_table");
while(nResults < 1) wait(100);

//Causes a crash in versions 1.52s and 1.52t
IJ.deleteRows(1, 1);

This is the exception I get when trying to delete a row:

(Fiji Is Just) ImageJ 2.0.0-rc-69/1.52t; Java 1.8.0_66 [64-bit]; Windows 10 10.0; 77MB of 60000MB (<1%)
 
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4

	at java.util.ArrayList.rangeCheck(ArrayList.java:653)

	at java.util.ArrayList.get(ArrayList.java:429)

	at ij.measure.ResultsTable.deleteRow(ResultsTable.java:853)

	at ij.measure.ResultsTable.deleteRows(ResultsTable.java:866)

	at ij.IJ.deleteRows(IJ.java:584)

	at ij.macro.Functions.ijCall(Functions.java:6310)

	at ij.macro.Functions.getStringFunction(Functions.java:280)

	at ij.macro.Interpreter.getStringTerm(Interpreter.java:1449)

	at ij.macro.Interpreter.getString(Interpreter.java:1427)

	at ij.macro.Interpreter.doStatement(Interpreter.java:330)

	at ij.macro.Interpreter.doStatements(Interpreter.java:261)

	at ij.macro.Interpreter.run(Interpreter.java:157)

	at ij.macro.Interpreter.run(Interpreter.java:91)

	at ij.macro.Interpreter.run(Interpreter.java:102)

	at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:161)

	at ij.IJ.runMacro(IJ.java:151)

	at ij.IJ.runMacro(IJ.java:140)

	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1107)

	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1103)

	at net.imagej.legacy.IJ1Helper.runMacroFriendly(IJ1Helper.java:1054)

	at net.imagej.legacy.IJ1Helper.runMacro(IJ1Helper.java:1103)

	at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:147)

	at org.scijava.script.ScriptModule.run(ScriptModule.java:160)

	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168)

	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127)

	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66)

	at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:228)

	at java.util.concurrent.FutureTask.run(FutureTask.java:266)

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

	at java.lang.Thread.run(Thread.java:745)