diff_branches: don't generate empty tables

Change-Id: I5bed354e7c1765ddf078dac71f5d4bcbdc88c3f5