Test that doc.cookie = null returns null and has no effect