Fix crash in get_all_stats() if arr is empty

Should fix jtriley/StarCluster#339.