Fix NULL pointer reference when closing an unused multi handle.