Fix a crash caused by the APIClientEventBus.

This was caused by attempting to unregister subscriptions to an event bus that was never created.