nanobts: Do not crash on an invalid TRX number

In case the specified trx number is not configured, do not crash
but return NULL from the function. The libosmo-abis library should
close the connection for us then.
diff --git a/openbsc/src/libbsc/bts_ipaccess_nanobts.c b/openbsc/src/libbsc/bts_ipaccess_nanobts.c
index 4bf937b..c8b235d 100644
--- a/openbsc/src/libbsc/bts_ipaccess_nanobts.c
+++ b/openbsc/src/libbsc/bts_ipaccess_nanobts.c
@@ -559,7 +559,7 @@
 		struct gsm_bts_trx *trx = gsm_bts_trx_num(bts, dev->trx_id);
 
 		/* no OML link set yet? give up. */
-		if (!bts->oml_link)
+		if (!bts->oml_link || !trx)
 			return NULL;
 
 		/* remove old RSL link for this TRX. */