Fixed crash when using mailimap_enable()