Just ran into this same exact issue, except I did it the lazy way, and just cartridge blew into the slot, inserted the SD card, and now the Homebrew page is displaying apps again. Thank you so much for sharing this fix, I can't believe just a small bit of debris causes quite a headache!