Fixed crashes due to relationship removal/revalidation by changing the
relationship validation method DatabaseModel::validateRelationships().