Don't build missing branches if log is null