Update mt-data-api.js. bugid:110282

Check only window.document in order to confirm this environment supports cookie.