Core/Misc: Fix a compile warning.

Closes #11229