Fix #791 - Cancel the current edit on updateRowCount().