This has been fixed on the master branch and on the develop branch of https://github.com/WeAreROLI/JUCE. This fix is not part of the archives that you can download from https://shop.juce.com/get-juce/download though.