Implement MutNullableJS for mutable, nullable member pointers to DOM objects.

Extracted from #3527.