Fix null dereference in weather update functions