Prevented the onClearBlock() callback from crashing the app