Convert x.equal?(undefined) to undefined.equal?(x)

See a19d2b5