Fixed #5549 (ValueFlow: Handle static variables better in valueFlowAfterAssign)