Revert "HHH-3730 Compare both ids in isModified instead of an object and an id"

This reverts commit 1a10937ae981beee3e6694ebf83e8b53112f9f87.