Couple cast micro-optimizations.
GetErrorString: handle potential failure of FormatMessageW (commit made originally to tundra-urho3d).