Are evolutionary algorithms safe optimizers?