It seems that script.getobjects method is not working since 1.8. Given that it's wouldn't be very useful even if it worked correctly, I think it should be removed.