toString returns value.toString() if not null. This allows decryption to occur properly. Fixes gh-1490