Set next to null instead of exception thrower.

This allows testing for the existence of a next method.