Fixed EZP-18195: $result.object is not correctly created
(cherry picked from commit 1a081f257b3204e612dfd9a278490fe04d344604)