The tpm2_tpm2b_public_from_pem() invocation only makes sense when we succeed to load the file from disk, hence we might do this together and safe a conditionalization.