WildMidi_Shutdown: set first_handle to NULL after all handles are freed.
(cherry picked from commit 5f63effb723793cd875262203e4e8dff654904cd)