Found the issue you were having with overriding the script. The updatePowerWindowUses actually returns a value that is used by another function in power_page.lua. In your version, you weren't returning anything, which is the same as always returning "nil" value which equates to false on boolean checks.
Here's an updated version of the extension with the return value passed through correctly.
Regards,
JPG