Better fix for RefereceProperty event crash

The logic in `ReferenceProperty._onCollectionChanged` was wrong and would
clear it's data and raise it's changed event when any entity other than
the targetEntity was removed from the targetCollection.  This fix reverts
the previous change and inverts the logic so that it's correct.