The rights of a mortgagor claiming compensation are not affected by a determination of the compensation payable to a mortgagee, and the rights of a mortgagee claiming compensation are not affected by a determination of the compensation payable to the mortgagor or another mortgagee, unless the mortgagor or mortgagee, as the case may be, was a party to an agreement or proceedings by which the compensation was determined.