Using isset to avoid undefined variable error when there are no diffs.

This is related to #16.