Improve previous commit when msIO_setHeader() is called before any call to msIO_Initialize()