Hi Callum,
Thank you for bringing this to our attention. Your fix would resolve the issue. We’ve implemented it in a slightly stricter fashion here. https://github.com/EpicGames/UnrealEngine/commit/e42c205e1f5dfd25db9ed14ce0b166c4ddc15c66
Best regards.