Fix ASSERTs when calling beginRemoveRows with out of bounds parameters.
The last param must be the last row, not the row count.