Fixed EZP-20512: Fatal error when uploading file to object relations with certain permissions