[nemo-qml-plugin-contacts] Handle setContactData in various states

The correct handling for setContactData depends on whether the person
is linked to a contact in the cache or otherwise.