Check that external api methods return instances of OC_OCS_Result

Catch an error if the api method doesn't return and OC_OCS_Result instance.