protect against negative image dimensions - closes #1927
Merge branch 'master' of github.com:mapnik/mapnik into webp