Return null enum when invalid index is decoded.
Add getCertificate()