[MOD]add optional judge for delegate wrapper

optional方法直接调用引起crash