[libcontacts] Avoid crash from null ContactManagerEngine. Fixes JB#49469
This tag has no release notes.