Fixed major bug in registration of wireless devices in OMNeTBattery