Fix race condition where the API would sometimes finish loading before the view page could register a listener.