If the onInit callback wasn't set before init() was called, make sure that an onInit callback passed to init() is called.