[ACE] Galv's Shop Upgrade + YEA Dynamic Stats problem?

Hello!

I'm having an issue getting these two scripts to work properly together:

http://galvs-scripts.com/galvs-shopkeeper-graphics/

https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/equip-dynamic-stats/

Now this is a little odd, because the former script specifically and explicitly contains a patch for the latter, and yet I still get a bug. Without the patch, the script works fine functionally, but the stat boosts given by the latter script do not show up, so this isn't a good idea. With the patch, sometimes upon scrolling over items in the Buy option, or choosing an item to sell in the Sell option, I get the following error:

Script 'Vocab' line 95: TypeError occurred.
no implicit conversion from nil to integer

And this is really weird? Because the +Percentages display perfectly, some items can be sold without a problem (even with the percentage stats!) And some items will cause the bug, even with no percentage stats at all! And just for testing purposes, these two items have the same price.

But without the second script, this bug does not occur at all. I tested this within the Shop Upgrade demo, containing only the shop script and the stats script, and it still occurs, even on an item specifically coded within the demo to showcase the compatibility between the two scripts. (The item has stat percentages in the Note area, so that it will activate if the demo tester has both scripts installed.)

I'm... thoroughly confused, by this point. Even after a lot of testing I can't pinpoint exactly what is causing the error. And I can't find any topics in the forums regarding this question either. Someone asked about this in the comments section of Galv's script, but the answer wasn't there, either. Can anyone help?

Thanks in advance! I'm just so in love with both of these scripts and I'd really like to be able to use them together.
Bump! I'm unfortunately still thoroughly stumped by this one and haven't found anything that might help.
Three-day bump, with an update!

I've isolated the part of the patch that causes the error. There are three parts of the patch, and it's the first part of the patch that causes the error. I tried deleting the second and third out from the script, and the error still happened, but when I deleted out the first part, the error stopped happening!

Here is the part of the script I deleted:

Spoiler
class Window_ShopStatus < Window_Base

    def draw_actor_param_change(x, y, actor, item1)

      rect = Rect.new(x, y, 40, line_height)

      change = actor_param_change_value(actor, item1)

      change_color(param_change_color(change))

      text = change.group

      text = "+" + text if change >= 0

      draw_text(rect, sprintf("%+d", change), 1)

    end

  end # Window_ShopStatus
The percentage gains still display in the shop window as well.

What changes is that the bottom row, where the actors' potential stat gains and losses are displayed, now displays inaccurate information because it can no longer take the percentage gains into account. So for example, if I have a weapon that gives +200% to attack, it will still look like a net loss compared to an item that gives a +1 to attack, because the former weapon does not give any static attack increase.

This is kind of annoying, but to be honest I'm willing to live with this. I'd still very much appreciate the help if someone knows how to fix this problem, but it's no longer a pressing issue. I'll simply have to work around it. 

Original thread: https://forums.rpgmakerweb.com/threads/ace-galvs-shop-upgrade-yea-dynamic-stats-problem.53347/