TRUNK-3826: Bug in PersonAttribute.compareTo

If the attributes types are null for both, i would compare other fields of the attribute then