Fix crash in get_all_stats() if arr is empty

Should fix jtriley/StarCluster#339.
Merge pull request #340 from liffiton/patch-1

Fix crash in get_all_stats() if arr is empty