Fixed crash when deactivating modules when removing power from ship