Add method to KieHelper to check for compilation errors
(cherry picked from commit a0be7e6c38b687e92a77eff41408f3f4eda81e83)