Fix EZP-23322: validate if required object relation list is empty