Some bug fixes

Workaround for a bug where there was too much data getting stored in Intent for MediaCheckDialog, and fix a rare NPE bug in CardBrowser.