* fix(emitter): only emit if there are log records * fix(actions): marshal invalid metadata value into string