[WEB-880] Add check to ensure permissions are present before calling 'hasOwnProperty' on it
[WEB-880] Add check to ensure permissions are present before calling 'hasOwnProperty' on it

tidepool-org/tideline,tidepool-org/tideline