CustomPomParser compatibility with 0.13.1. #1191 #1192

I merged in #1192 but @jsuereth pointed out that it could break compat with 0.13.x.

@dansanduleac Is there a test you can add?