add back safety measure in the local residual of non-local DOFs

Using NaNs for these residuals will hopefully make it obvious if these
values are used (which they should not be).  I only changed them to 0
to make comparision with the old linearization easier. later I forgot
to change it back...