[PATCH 4.9 28/39] X.509: fix NULL dereference when restricting key with unsupported_sig