json error handler : use MAPNIK_LOG_ERROR and better message
avoid allocating potentially large std::string in error_handler