Core/Waypoints: Fixed memory leaks happening when loading waypoints with invalid move_type