[aot] Avoid a crash in the aot compiler if a delegate doesn't have a BeginInvoke...