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

This one is a no brainer. That said I have a couple of questions I'll post in the PR.