-browser: ensure the first argument of finished callback is instanceof Error