[S] Change in libosmo-gprs[master]: sm: Fix potential null access due to missing check