fixed bug in ExtractOpenRAVETrajectoryFromProfiles