setting bodySize attribute of resource object on 'end' stage

https://github.com/ariya/phantomjs/issues/10158