A response of grpc calls within methods of DeviceModelClient is nil as soon as an error occured within the call.
In some methods values of the response were directly accessed and returned. This leads to a segmentation fault if the response is nil.
If a grpc call returns an error the error is now catched and properly returned.