Test that overwriting with undefined does not crash.