bug fix in ExtractOpenRAVETrajectoryFromProfiles