EVERESTTWO-482 Pass default onError function to APIConnection instantiat...

Pass default onError function to APIConnection instantiation. Synced changes in both the patch and the AdminApi.js for consistency.