Fix allocation-error-handlings for scope_new().

It's fixed in 05ede522