Fixed EZP-18195: $result.object is not correctly created