handle empty metadata in pyout messages more gracefully.