Add nil checks to prevent potential panics when keystore backend is unavailable in the Clef signer API.