Fixed Receiver Error

Fixed an error that would cause an app to crash when losing network
connection after registering the receiver.