Update mt-data-api.js

Trigger "authorizationRequired" only if response.error exists.