Corrected callback handling in mediafinder.js.