Fix NPE while running application integration tests

NPE is throwing when i added elasticsearch-grails-plugin to my Grails 2.4.0 project and start integration tests.
That is because `application.parentContext` is null in `doWithSpring` closure when application starts in integration test mode. Here is a quick fix for that.