teneur should never been empty, but we yet have to define this constraint on PG level. So this is just to catch an potential error for now and avoid the script to stop. not sexy, but works