fdo#39236: Better way to remove DP objects without reversing order.
fdo#39236: Better way to remove DP objects without reversing order.

The old fix reversed the order of the elements even when no elements
were deleted.  This is better & cleaner.  Thanks to David Tardon for
suggesting me this.

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core