TypeError: Cannot read property 'elements' of undefined at Object.getData (D:\home\site\wwwroot\handlers\bedford\position.js:21:31) at processPage (D:\home\site\wwwroot\helpers\helpers.js:270:26) at tryCatcher (D:\home\site\wwwroot\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:517:31) at Promise._settlePromise (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:574:18) at Promise._settlePromise0 (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:699:18) at Promise._fulfill (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:643:18) at MappingPromiseArray.PromiseArray._resolve (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise_array.js:126:19) at MappingPromiseArray._promiseFulfilled (D:\home\site\wwwroot\node_modules\bluebird\js\release\map.js:101:18) at Promise._settlePromise (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:579:26) at Promise._settlePromise0 (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:619:10) at Promise._settlePromises (D:\home\site\wwwroot\node_modules\bluebird\js\release\promise.js:699:18) at _drainQueueStep (D:\home\site\wwwroot\node_modules\bluebird\js\release\async.js:138:12) at _drainQueue (D:\home\site\wwwroot\node_modules\bluebird\js\release\async.js:131:9) at Async._drainQueues (D:\home\site\wwwroot\node_modules\bluebird\js\release\async.js:147:5) at Immediate.Async.drainQueues [as _onImmediate] (D:\home\site\wwwroot\node_modules\bluebird\js\release\async.js:17:14) at processImmediate (internal/timers.js:439:21)