Nm planner - fix this api

Why do you need such a guard? `nt::Type_e::Unknown` don't do the job? Maybe you should check at the end of the block that the type is correct?