Error in Android Build with Address Sanitizer

In the UnrealBuildTool, the AndroidManifest.xml is generated by function GenerateManifest.
The case is that, when enabling Asan check, the android build results in an error as below.

Browsing the details about the function, it seems that there is a logic error. One line come from line2574 and another one come from line2590. If you enable Asan, whatever the value bExtractNativeLibs is, there will be this duplicate error.

This error is fixed in 5.1, but for 4.27 maybe the only way is to rebuild unreal build tool from source code.