SERVER-8640 Fixed $setOnInsert over a field created by the query portion of an upsert.
SERVER-8647: don't fail when loading invalid stored JS