Don't test JSON.stringify if it doesn't exist #867