Avoid potential NPE when handling Jasypt password prefixes

Fixes #5874
3 files changed