fsm: guard action callback

The FSM allows to set individual action callback functions for each
state but it does not allow to leave the action callback pointer
unpopulated. However, there are cornercases where having no callback
function is desirable.

- Check if action callback is popolated before executing it.

Change-Id: I36d221c973d3890721ef1d376fb9be82c4311378
diff --git a/src/fsm.c b/src/fsm.c
index ae2fdc2..0370f65 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -541,7 +541,9 @@
 			    osmo_fsm_event_name(fsm, event));
 		return -1;
 	}
-	fs->action(fi, event, data);
+
+	if (fs->action)
+		fs->action(fi, event, data);
 
 	return 0;
 }