Corrected size of empty result array. Fixes #1603
Merge pull request #1659 from adonath/Fix_for_#1603

Corrected size of empty result array. Fixes #1603