If-guard to avoid null ptr deref in statem_srvr.c