[S] Change in osmo-mgw[master]: replace two assertions with graceful error handling