STS-3878 Fix: handling of GroovyRuntimeException and test.
Merge pull request #77 from DenisMurashev/STS-3878

STS-3878 Fix: handling of GroovyRuntimeException and test.