The list of removed devices should consist of fully qualified Device objects and not of DeviceReferences. The latter do not provide the information that needs to be sent out via JSON after the device has been removed; at the same time DeviceReference->getDevice() will fail, because actual device has already been removed from the model.
implements #12580