Fixed a bug for registering/unregistering DroneEventListener and DroneStatusListener.