Fix error introduced in previous commit that ignored the encryption flag check