Fix #86 : Handle broken relationship

Previously it was possible to delete expense types
Already defined expenses were loosing their relation, the total property
of the model was failing due to this.
Here we check the relation.