Fix ambiguous rule match in PDF image map processing #1407

Gist with test document: https://gist.github.com/emth/6437052