Fixed a bug in concentration-histogram function

* Some values could be nil before the fix, now just numbers are returned.