Do not try to delete related attribute if it is not defined