Merge pull request #33712 from rohitwaghchaure/fixed-stock_rbnb-error

fix: local variable 'stock_rbnb' referenced before assignment