Fixed a bug also found in RNCryptor

BugReport: https://github.com/rnapier/RNCryptor/issues/77