Continuity of bilinear maps on direct sums of topological vector spaces