CSPACE-5982: Fix script error when no fields are returned.
Merge pull request #200 from ray-lee/CSPACE-5982

CSPACE-5982: Fix script error when no fields are returned.