20264 Improve error handling in plv8 so we can pass messages to the datasource.

TODO - Ran into a bug when testing because this condition is not handled.
https://github.com/bendiy/xtuple/commit/777c0bf2b35b1ddbfec512d0021a0bc34b2810d0#L0R981