Fix assertion in JSObject's structure setting methods