JRubyScriptUtils defensively handles null Nodes in findClassNode (fails against JRuby 1.7.12 otherwise)

Issue: SPR-11747
Upgraded to Gradle 1.12 and updated several dependencies to latest maintenance releases