Fix for records with no data to be encrypted