Fix NPE on empty diffs