I pasted your Extensions definition inside our sample project and ran it and then added code in our demo similar to what you have in the third snippet and getDeepErrorMessage showed in both cases for me.

If you can't figure it out then please make a new very simple sample project that shows the issue and email that to our support address. Rename any .zip file extensions so they don't get spam blocked.