fixed get_diff on nullified has_many/many_many relations