[TIMOB-12070] Fixed a bug with calling new Object(void 0)

**WARNING** PR #230, PR #231, PR #232 and PR #233 MUST be merged before merging this one.