improved error handling when list of user devices equals 0