correctly extract nested columns in ESGetTask

Fixes #1333