Fixes Uncaught TypeError: Cannot read property 'length' of undefined javascript error that can cause the Media Browser button (among other js-based things) to stop working