Bug in TupleOutputFormat (NPE when not emitting any record) solved.