[RILMODEM] hardening phonebook driver implementation

Signed-off-by: Jarko Poutiainen <Jarko.Poutiainen@oss.tieto.com>