### What problem does this PR solve? fix #8424 NPE in dify_retrieval.py, add log exception ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)