This fixes #7518.  Anything non-numeric will cause it to assume that the resistance is infinite.