LPS-46803 Resolve compilation error

Hey Brian,

The issue reported in LPS-46803 only occurs with the SDK of ee-6.2.x, but I've solved it in 6.2.x for consistency. Can you please review it and apply it to ee-6.2.x if it's ok?

Thx!