Fix NaNs for well equations.

This avoids a division by zero for wells that have zero flow rate (typically encountered as an initial state).

Taken together with OPM/opm-core#564, this avoid the NaNs previously encountered in the residuals.