Path_offset_get(type) not working as expected

Steps to reproduce:
New program →make script → path_offset_enable() \n path_offset_get(1) → run program

Expected Behavior:
*path_offset_get(1) returning a current path_offset as explained in docs (*path_offset_get(type))

Actual Behavior:
Throwing error: “Path offset: Invalid offset type given. Consult the script manual for valid offset types.”

Workaround Suggestion:
No workaround found.

Robot Serial Number:
Robot serial number or simulator?

Affected Version(s):
PolyScope X-10.11.0 on real robot

PolyScope 5.25.0 using ursim

In order to get the path offset it has to be set once before.

The following code works:

path_offset_enable()
path_offset_set([0,0,0,0,0,0], 1)
global offset = path_offset_get(1)

Indeed - this works! Thanks you.
In my opinion the docs should explicitly mention this behavior as the error message is somehow confusing. From a customer point of view the function should still return as long as path_offset is enabled or another error message should be displayed.