Fix issue when per-level writer is undefined.