It looks like your code calls this new callback function unconditionally. That's not a backward compatibile API change. This file is used by the Camera app and by the gallery's open activity (open.html and js/open.js) so you can't just change it without also changing or testing those apps.  I'm pretty sure this patch would break both of those things.