Don't try first() on an empty list. Also set a sane default for conflictresolution when the argument is not set.
Don't try first() on an empty list. Also set a sane default
for conflictresolution when the argument is not set.

svn path=/trunk/KDE/kdepim/; revision=686984

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi