improved mapping handling in the API

fixed NPE in ingest error streaming
1.3.0.2