Added check mass_density for NaN.

8 jobs for v0.8.4 in 20 minutes and 42 seconds (queued for 2 seconds)