SVY-7407 check for onDeleteRecord return value before deleting related
data, not after