fix crash when MMSC setting is NULL

An APN with a null MMSC column prevented the MMS app
to find the next APN in query.