Fix crash in map_fields and fix riemann_event for "%{field}" strings