Hello Ravi,
I see,
Are you in New GL with Profit center scenario activated (CP mandatory ? )
Can you please make a test and check when your material have no profit center on it , what is the profit center used then (empty, or the WBS's one) ?
maybe making a substitution can resolve the issue, but this should be the last option...
Regards
Tamim