fix error in expection handling for mapnik source