phonedirectory: prevent unlikely null dereference
phonedirectory: prevent unlikely null dereference

There is a code path combination (that should not happen, but is
reachable) that could cause a null dereference.

[SS: add warning log in case it happens to make it easier to track down]

Change-Id: I1c2c2b5be417e9ec74e0ab157c9aadcd0ec4a613
Signed-off-by: Stepan Salenikovich <bebb1f1b8bb7363930c4153df8cb235b803d485d@savoirfairelinux.com>
Reviewed-by: Stepan Salenikovich <bebb1f1b8bb7363930c4153df8cb235b803d485d@savoirfairelinux.com>

savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc