prevent exception trying to write out null header when mapping id to msgctxt