Cannot read property 'contentDetails' of undefined

TypeError: Cannot read property 'contentDetails' of undefined at getPlaylistEnhanchedWithVideos (/app/routes/index.js:316:38) at /app/routes/index.js:158:31 at tryCatch (/app/node_modules/es6-promise/dist/es6-promise.js:410:12) at invokeCallback (/app/node_modules/es6-promise/dist/es6-promise.js:425:13) at publish (/app/node_modules/es6-promise/dist/es6-promise.js:393:7) at flush (/app/node_modules/es6-promise/dist/es6-promise.js:121:5) at _combinedTickCallback (internal/process/next_tick.js:73:7) at process._tickCallback (internal/process/next_tick.js:104:9)