Good catch
I made a small change in core based on that.
Thanks for reporting the issue and the fix @Don