Don't throw exception when trying to encrypt falsey value.
Merge pull request #2483 from ADmad/2.5-security

Don't throw exception when trying to encrypt falsey value.