Fixed possible NPE in media browser.