[bug-fix] nElementsA was being decremented when calling to removeNeighbor for a non-neighbor in AbstractTwoSidedFactor.

[bug-fix] nElementsA was being decremented when calling to removeNeighbor for a non-neighbor in AbstractTwoSidedFactor.