Update AESEncryptionHelper.java

Changes exception handling to support all Java versions