APF-1379: Fixed NPE when using Tomcat Maven Plugin.