code: function addLegacyAPI(service, handle) {
      var falseFn = function() {
        return false;
      };
      var rejectFn = function() {
        return $q.when($mdUtil.supplant(errorMsg, [handle || ""]));
      };
  
      return angular.extend({
        isLockedOpen: falseFn,
        isOpen: falseFn,
        toggle: rejectFn,
        open: rejectFn,
        close: rejectFn,
        onClose: angular.noop,
        then: function(callback) {
          return waitForInstance(handle).then(callback || angular.noop);
        }
      }, service);
    }
docs: For failed instance/handle lookups, older-clients expect an response object with noops
  that include `rejected promise APIs`
  @param service
  @param handle
  @returns {Object}