Fix JSObjects not returning JSWrapper'd objects (bug 889801)