### What this PR does / why we need it?
This PR fixed the bug in register_custom_ops without forward_context. We
set try-except to consider this situation.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
CI passed with new added/existing test.
- vLLM version: main
- vLLM main:
https://github.com/vllm-project/vllm/commit/7920de0a2af7c663efae29856f1bac061a553b58
Signed-off-by: rjg-lyh <1318825571@qq.com>