SERVER-6646: fix round-trip of null values in v8

Conflicts:
	src/mongo/scripting/engine_spidermonkey.cpp
	src/mongo/scripting/engine_spidermonkey_internal.h
	src/mongo/scripting/engine_v8.cpp
SERVER-11781 Don't crash when converting deeply nested or cyclical JS objects to BSON