Remove references to undefined.

Just to show that we don’t need to use `undefined` at all.  But I don’t think we necessarily care about it enough to do this!

Fixes #2077.