DB API : tolerate None values to _encrypt

Closes-Bug: #1237596

Change-Id: I39cd4a1bab39def9ad4c214da768e91f411d7697
Merge "DB API : tolerate None values to _encrypt" into milestone-proposed