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