ssa.c: Current smdb ref. object may be NULL. Fix the crash.

 If ibssa application couldn't open ib devices and exits,
 smdb pointer is NULL.