Null Pointer in Backup email Template + Hash.generateRandomHashOfLength