[simulations] Fix return error value for several functions in engine"
[simulations] Fix return error value for several functions in engine"

Signed-off-by: Otavio Pontes <a04f37e3ccb281cf4119e4b2fa8286ed94121d92@intel.com>

anselmolsm/soletta-machine-learning,solettaproject/soletta-machine-learning,solettaproject/soletta-machine-learning,anselmolsm/soletta-machine-learning,solettaproject/soletta-machine-learning,anselmolsm/soletta-machine-learning