bug fix for json object with no targets
Fixed nullpointer exception when position == null