Avoid a NPE on no Crypto instance
Minor change