fix NPE in onChange when in forked execution

Fix for http://jira.grails.org/browse/GRAILS-10880
This is caused by forked execution: there are two parallel onChange events fired, one in the app that runs successfully, and one in the starter jvm that fails because there is no spring context.