[LuaAPI] Widget.origin always returns nils

I need to find the position of a widget but it keeps returning {nil, nil}.
The widget has been defined with origin={x, y}.