Do not serialize TB when no schema is stored

This occurs when a channel closes abnormally.