handle empty diffs

Not sure why this never came up before.