Nm planner - fix this api

If I understand well, here, elemets of `tmp` that have type == -1 can be removed. You can filter `tmp` before push_backing it, to avoid checking the guard in raptor_api.cpp