fix more degenerate cases in ExtractOpenRAVETrajectoryFromProfiles