In some cases (preparse a grammar via dom3 as api, for example), there is no current entity. This check prevents seme NPE to happen.
In some cases (preparse a grammar via dom3 as api, for example), there is
no current entity. This check prevents seme NPE to happen.


git-svn-id: 21df804813e9d3638e43477f308dd0be51e5f30f@318018 13f79535-47bb-0310-9956-ffa450edef68

jimma/xerces,RackerWilliams/xercesj,jimma/xerces,ronsigal/xerces,RackerWilliams/xercesj,ronsigal/xerces,jimma/xerces,ronsigal/xerces,RackerWilliams/xercesj