tests: close OML and RSL if set for the BSC example

We only close the OML and RSL links if they are indeed up.
diff --git a/tests/e1inp_ipa_bsc_test.c b/tests/e1inp_ipa_bsc_test.c
index 3885dc9..4926228 100644
--- a/tests/e1inp_ipa_bsc_test.c
+++ b/tests/e1inp_ipa_bsc_test.c
@@ -62,8 +62,10 @@
 static void sign_link_down(struct e1inp_line *line)
 {
 	LOGP(DBSCTEST, LOGL_NOTICE, "signal link has been closed\n");
-	e1inp_sign_link_destroy(oml_sign_link);
-	e1inp_sign_link_destroy(rsl_sign_link);
+	if (oml_sign_link)
+		e1inp_sign_link_destroy(oml_sign_link);
+	if (rsl_sign_link)
+		e1inp_sign_link_destroy(rsl_sign_link);
 }
 
 static void fill_om_hdr(struct abis_om_hdr *oh, uint8_t len)