Bug 898409/898410: Revert revert and fix property writability issue

Unit test failed because mozPower was not set as writable. This reverts the revert to bring the original patch back, and adds a fix.