libril: fix crash in qcoms ril library during DIAL

thanks Drummerjed and mithun46(omnirom)