JBRULES-3676: Fix debugging of Java rules

Suggested fix for JBRULES-3676