[processing] fixed issue when running models in a batch process

Fixes #11438
[processing] better handling of wrong models