function validateInstanceHandle() {
  var invalid = !InstanceHandle||
    !InstanceHandle.traverseTwoPhase ||
    !InstanceHandle.traverseEnterLeave;
  if (invalid) {
    throw new Error('InstanceHandle not injected before use!');
  }
}
Stores `listener` at `listenerBank[registrationName][id]`. Is idempotent.

@param {string} id ID of the DOM element.
@param {string} registrationName Name of listener (e.g. `onClick`).
@param {?function} listener The callback to store.