Avoid NaN in intensity calculation
Avoid NaN in intensity calculation

Qt throws some error messages if alpha is not in between 0 and 256. This
can be caused due to `num_samples_in_function` being 0 and the quotient
being NaN.

google/orbit,google/orbit,google/orbit,google/orbit