STS-3780 fix.

Kris, Andy, Martin can one of you take a look at this PR please? (Just in case)

To test: STS 3.5.0 environment + Gradle Eclipse Integration and
Spring-IDE source loaded. Target is STS 3.5.0 + Gradle Eclipse
Integration + WSO2 (from Eclipse Marketplace)

Lanuch runtime workbench and import a getting started content (using
Maven build engine)
Get the error

Apply the fix and repeat the steps above. Should work.