[tools] Protection from NPEs in view context initialization whenever request is null

There may only be a servlet context scope in some cases, for instance in a webapp background thread.



git-svn-id: https://svn.apache.org/repos/asf/velocity/tools/trunk@1801740 13f79535-47bb-0310-9956-ffa450edef68
1 file changed