kernel32: Avoid calling MultiByteToWideChar with invalid parameters.