Fixed meta.depths to handle when drho_dz is a NA value.

Matlab and R have a critical difference in functionality that wasn't accounted
for here. For matlab, NaN in a boolean statement (like NaN > 0.1) returns false.
In R, it returns NA, which the if in R can't handle and throws an error.