Three minor fixes for lg

Greetings, Telliamed! Here are three minor fixes for the lg library that I accumulated while working on KDScript. See the comment on GetWeather; I'll advise if anyone still gets crashes with this prototype.