Avoid calling undefined oncomplete callback.