Fix edge case in Diff.class.php causing it to error out

Previously it was possible for the startOffset and endOffset to overlap
for certain arrays, causing the algorithm to completely fall apart.
Allow completely disabling the edit history