[Security] added an exception when the BCrypt encoder cannot be used (refs #7853)