Wrong Interaction between an UI Stroke and UI Corner in a Frame

How the frame looks with a stroke and corner:

Maybe barely noticeable but the UI stroke leaves a small space which can be seen on the left and right sides of the frame.
Caused by the UI corner.

How the frame looks with only a stroke:

No space between the frame and UI Stroke. How it is supposed to be.

Capture

A private message is associated with this bug report