BUG:11368680 - Fixing HubController error handler to be robust; Also special-case handling rejected promises from lower levels that may not be rejected with an Error at all (Eg NEST hub translator rejects PutDeviceDetailsAsync with the error message and not error object itself which needs to be fixed also
BUG:11368680 - Fixing HubController error handler to be robust; Also special-case handling rejected promises from lower levels that may not be rejected with an Error at all (Eg NEST hub translator rejects PutDeviceDetailsAsync with the error message and not error object itself which needs to be fixed also

openT2T/cloud,openT2T/cloud