Fix get_object_from_path when path with params is given