Bug/automatic setup email field update

@tlvince that's your code, instead of 

           if(!emails || !emails.length) {

-            return deferred.reject('No device emails found');
}

deferred.resolve({mainAccount: email[0]}); //the else part


why not make it clear that this is the else part and have only one return deferred.promise, cause i dont understand??? 


return deferred.reject();