[MERGE] don't send metadata if session no output

Signed-off-by: David Goulet <dgoulet@efficios.com>