Cannot read property '0' of undefined

TypeError: Cannot read property '0' of undefined
    at Promise.<anonymous> (/var/www/vladimircherniy.ru/public_html/routes/galleries.js:174:28)
    at Promise.<anonymous> (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/node_modules/mpromise/lib/promise.js:172:8)
    at Promise.emit (events.js:95:17)
    at Promise.emit (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)
    at Promise.reject (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/node_modules/mpromise/lib/promise.js:111:15)
    at Promise.error (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/lib/promise.js:89:15)
    at Promise.resolve (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/lib/promise.js:107:24)
    at Promise.<anonymous> (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/node_modules/mpromise/lib/promise.js:172:8)
    at Promise.emit (events.js:95:17)
    at Promise.emit (/var/www/vladimircherniy.ru/public_html/node_modules/mongoose/node_modules/mpromise/lib/promise.js:84:38)