Fix use of uninitialized variables in managed decimal implementation (#25674)