[processing] fix exception raising (fix #11842)