Override equals of Model

They are true if both have the same not null id.
Otherwise, fallback to default equals