Fixes #758. This is the same issue fixed by 74c07c64a7 but in this case the cause was the top-level pom.xml, which didn't go through CustomPomParser.
74c07c64a7