GPJASPER-73

Hi,
I upgraded an app to 2.4.4 today and it broke the plugin with the error described in GPJASPER-73. The following commit fixed it for me.
Please review and merge if it looks ok. I'd like to have a working version in plugin central if possible.
Thank you !

Philippe