Fixed QContact::preferredDetails()

The functions was trying to get the detail from the internal detail list using the detail id as list index.
Instead of that we need lookup into the list for the correct detail id.

Change-Id: Iefc4ec8771b86c990af89bfecc3731565c711222
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>