Fixed http 500 due to mismatch between ResponseDTO and tuple from plugin encrypt

Change-Id: Ib206c0cc17d71013ffb30af08b4cce4392171b08
Closes-Bug: #1320001
Merge "Fixed http 500 due to mismatch between ResponseDTO and tuple from plugin encrypt"