Fix segmentation fault in bodyNumInteractionsHistogram.

(Closes: LP:1087680)