CSPACE-5808: Fixed an issue with JavaScript error happenning when more than one record is created in the tab. Users can now save as many new related records as they want.