Warning when using `get_applied_visual_materials`

I’m using version 2023.1.0

When I try to call get_applied_visual_materials on a Prim (e.g VisualCuboid), it prints this warning:

2024-05-09 13:11:36 [37,413,406ms] [Warning] [omni.usd] Warning: in SdfPath at line 81 of /buildAgent/work/ac88d7d902b57417/USD/pxr/usd/sdf/path.cpp -- Ill-formed SdfPath <>: syntax error

I’ve tracked it down to xform_prim_view.py:466 which looks like this:

                    if shader_info[0].GetPath() != "":

The problem seems to be the comparison operator. The sharer_info[0] object looks like this:

shader_info[0]
UsdShade.Shader(Usd.Prim(</World/Looks/visual_material_50/shader>))

The warning is not printed when evaluating GetPath, only when it’s compared to an empty string. One workaround is to do str(...) != "".