Added guard code to avoid issue when decoding PEM but not keeping data.