If the vast majority of results were an upper limit with just a few meaningful results, our previous routine would give a bin size of zero but quote the result as the first value in the array which was not the value of the upper limit.  This alteration gives the proper output.