Fixed markFailed function so that title and thumbnail for first failed item is now searched only if connection to transfer ui exists. Not having this check was causing tests to fail.
Fixed markFailed function so that title and thumbnail for first failed item
is now searched only if connection to transfer ui exists. Not having this
check was causing tests to fail.

nemomobile-graveyard/webupload-engine,nemomobile-graveyard/webupload-engine,nemomobile-graveyard/webupload-engine